package com.dmj.sqldsl.model;

import com.dmj.sqldsl.model.column.ValueColumn;
import java.util.List;
import java.util.Optional;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;

@Getter
@AllArgsConstructor
@EqualsAndHashCode(doNotUseGetters = true)
public class Entity {

  private String tableName;
  private ValueColumn id;
  private List<ValueColumn> columns;
  private ModifiedFlag modifiedFlag;


  public Optional<ValueColumn> getId() {
    return Optional.ofNullable(id);
  }
}
